//
//  DYPageTitleView.h
//  TimeMall
//
//  Created by 帝云科技 on 2017/12/28.
//  Copyright © 2017年 diyunkeji. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^DYPageTitleViewSelectedBlcok)(NSInteger selectedIndex);

@interface DYPageTitleView : UIView

@property (nonatomic,strong) UIColor *titleNomalColor;  /**<字体普通颜色  默认：白色 半透明*/

@property (nonatomic,strong) UIColor *titleSelectedColor; /**<字体选中颜色  默认：白色*/

@property (nonatomic,strong) UIFont  *titleFont;  /**<字体大小  默认：14*/

@property (nonatomic,strong) UIColor *lineColor;  /**<下划线颜色  默认：白色*/

@property (nonatomic, assign) CGFloat lineWidth; /**<底部线条宽度 默认字体长度, 最大不大于当前标题控件宽度*/

@property (nonatomic,assign) NSInteger selectedIndex; /**<被选中的*/

@property (nonatomic, copy) DYPageTitleViewSelectedBlcok block; /**<点击标题回调*/

- (instancetype)initWithFrame:(CGRect)frame withTitleArray:(NSArray *)array;


- (void)setSelectedIndex:(NSInteger)selectedIndex animated:(BOOL)animated;

//- (void)downViewDidScroll:(float)compare;

@end


@interface DYPageCollectionView : UICollectionView

@end
